Brak opisu

stringify.js 1.2KB

    function stringifyNode(node, custom) { var type = node.type; var value = node.value; var buf; var customResult; if (custom && (customResult = custom(node)) !== undefined) { return customResult; } else if (type === 'word' || type === 'space') { return value; } else if (type === 'string') { buf = node.quote || ''; return buf + value + (node.unclosed ? '' : buf); } else if (type === 'comment') { return '/*' + value + (node.unclosed ? '' : '*/'); } else if (type === 'div') { return (node.before || '') + value + (node.after || ''); } else if (Array.isArray(node.nodes)) { buf = stringify(node.nodes); if (type !== 'function') { return buf; } return value + '(' + (node.before || '') + buf + (node.after || '') + (node.unclosed ? '' : ')'); } return value; } function stringify(nodes, custom) { var result, i; if (Array.isArray(nodes)) { result = ''; for (i = nodes.length - 1; ~i; i -= 1) { result = stringifyNode(nodes[i], custom) + result; } return result; } return stringifyNode(nodes, custom); } module.exports = stringify;
增加删除功能 · 49f6d2a9cd - Gogs: Go Git Service

增加删除功能

FFIB 3 years ago
parent
commit
49f6d2a9cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mch/admin.py

+ 1 - 1
mch/admin.py

@@ -236,7 +236,7 @@ class LatestAppScreenInfoAdmin(admin.ModelAdmin):
236 236
         obj.save()
237 237
 
238 238
 
239
-class ConsumeInfoSubmitLogInfoAdmin(AdvancedExportExcelModelAdmin, ReadOnlyModelAdmin, admin.ModelAdmin):
239
+class ConsumeInfoSubmitLogInfoAdmin(AdvancedExportExcelModelAdmin, admin.ModelAdmin):
240 240
     list_display = ('user_id', 'phone', 'model_name', 'serialNo', 'dupload', 'submit_during_activity', 'integral', 'has_used', 'created_at')
241 241
     list_filter = ('brand_id', 'submit_during_activity', 'activity_id', 'dupload', 'test_user', 'verifyResult', 'has_used', 'status', 'code_version', 'created_at')
242 242
     excel_fields = ('created_at', 'phone', 'model_uni_name', 'model_name', 'serialNo')